# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
# Contributor: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=py3-ewmh
pkgver=0.1.6
pkgrel=4
pkgdesc="Python implementation of Extended Window Manager Hints, based on Xlib"
url="https://github.com/parkouss/pyewmh"
arch="noarch"
license="LGPL-3.0-or-later"
depends="py3-xlib"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/parkouss/pyewmh/archive/v$pkgver.tar.gz"
builddir="$srcdir/pyewmh-$pkgver"

build() {
	export SETUPTOOLS_USE_DISTUTILS=stdlib
	python3 setup.py build
}

check() {
	# no tests from upstream
	PYTHONPATH=build/lib python3 -c "from ewmh import EWMH"
}

package() {
	export SETUPTOOLS_USE_DISTUTILS=stdlib
	python3 setup.py install \
				--prefix=/usr \
				--root="$pkgdir"
}

sha512sums="
257d59c0927cec3cd75a6084cd484f1dcf9fa882719707078398d2a65e95e975ad9f6225ed1fd8ec1a29badbdc492c84eb4e04640cc6b480b31bc5ae8ab3f7c8  py3-ewmh-0.1.6.tar.gz
"
